﻿using System;
using MATtutsLab.Entities;
using MATtutsLab.MVP.Views;
using MATtutsLab.Repositories;

namespace MATtutsLab.MVP.Presenters
{
    public class ZombieMovieDetailsPresenter
    {
        public IZombieMovieDetailsView View { get; set; }
        public IMovieRepository Repository { get; set; }

        public ZombieMovieDetailsPresenter(IZombieMovieDetailsView view, IMovieRepository repository)
        {
            View = view;
            View.Presenter = this;

            Repository = repository;
        }

        public void InitializeView(Movie movie)
        {
            View.DisplayMovieDetails(movie);
        }

        public void CloseRequested()
        {
            View.CloseForm();
        }
    }
}
